package com.cgtong.android.mvp.contract;

import com.cgtong.android.bean.ActivityDetailBean;
import com.zhouyou.http.callback.SimpleCallBack;
import com.zhouyou.http.exception.ApiException;

/**
 * Created by Sky.Bing on 2017/10/25.
 */

public interface ActivityDetailContract {
    interface View {
        void getDetailError(ApiException e);

        void showDetail(ActivityDetailBean activityDetailBean);

        void postActivityVoteError(ApiException e);

        void postActivityVoteSuccess();
    }

    interface Model {
        void getActivityDetail(int activityId, SimpleCallBack callBack);

        void postActivityVote(int activityId, String voteItems, SimpleCallBack callBack);
    }

    interface Presenter {
        void getActivityDetail(int activityId);

        void postActivityVote(int activityId, String voteItems);
    }
}